package view.subwindosw;

import model.entity.Bill;
import BaseClass.BaseSubFrame;
import javax.swing.JLabel;

import view.main.Main;

import java.awt.Font;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JTextField;
import javax.swing.JButton;

public class QueryFrame extends BaseSubFrame<Bill> {
	private JTextField textField;
	public QueryFrame() {
		addWindowListener(new WindowAdapter() {
			@SuppressWarnings("static-access")
			@Override
			public void windowClosed(WindowEvent arg0) {
				new Main().setQuery_windows(false);
			}
		});
		getContentPane().setLayout(null);
		setBounds(100, 100, 655, 421);
		JLabel lblNewLabel = new JLabel("查詢條件：");
		lblNewLabel.setFont(new Font("新細明體", Font.PLAIN, 20));
		lblNewLabel.setBounds(37, 13, 101, 19);
		getContentPane().add(lblNewLabel);
		
		textField = new JTextField();
		textField.setBounds(148, 13, 194, 23);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		JButton QueryBt = new JButton("確定");
		QueryBt.setFont(new Font("新細明體", Font.PLAIN, 20));
		QueryBt.setBounds(367, 13, 87, 23);
		getContentPane().add(QueryBt);
		setLocationRelativeTo(null);
		setVisible(true);
	}

	@Override
	public void Initialize() {
		// TODO 自動產生的方法 Stub

	}
}
